package com.wxzz.elearing.course.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * <p>
 * 课程章节测评试题
 * </p>
 *
 * @author
 * @since 2021-03-10
 */
@Data
@ExcelTarget("empUtil")
@ApiModel(value = "CurriculumSectionTopic对象", description = "课程章节测评试题")
public class CurriculumSectionTopic extends BaseEntity {

    @ApiModelProperty(value = "课程章节id(或者为考试id)")
    private Long curriculumSectionId;

    @ApiModelProperty(value = "试题类型  0-单选 1-多选 2-判断")
    private Integer topicType;

//    @ApiModelProperty(value = "正确答案(存放答案 例: bcd) ")
//    private String trueAnswer;

    @ApiModelProperty(value = "题目类型 0-章节题目 1-考试题目 2-培训调查题目")
    private Integer topicCategory;

    @ApiModelProperty(value = "题目名称")
    private String topicName;

    @ApiModelProperty(value = "限制选择个数")
    private Integer chooseNum;

    @TableField(exist = false)
    @ApiModelProperty(value = "选择的选项")
    private String items;

    @ExcelCollection(name = "章节测评题答案")
    @TableField(exist = false)
    @ApiModelProperty(value = "章节测评题答案")
    private List<CurriculumSectionTopicAnswer> curriculumSectionTopicAnswerList;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否做过 0-否 1-是 ")
    private Integer isChoose = 0;

    @TableField(exist = false)
    private Boolean disabledState = Boolean.FALSE;

}
